package com.etoak.stock.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author by 孙有泽
 * @Date 2024/10/98:56
 * @Description 定义http客户端工具bean
 */
@Configuration
public class HttpClientConfig {
    /*
     * @author 孙有泽
     * @date 2024/10/9 8:58
     * @description 定义http客户端bean
     */
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
